<?php
//======================================================================================
// Valid uuid - check uuid format not the content of the uuid
//======================================================================================
function isValidUUID($uuid) {
$pattern = '/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i';
return preg_match($pattern, $uuid);
}
?>